package com.qwz.example.visitor;

import com.qwz.example.customer.EnterpriseCustomer;
import com.qwz.example.customer.PersonalCustomer;

/**
* @Description: 具体的访问者，实现客户提出服务请求的功能
* @Package com.qwz.example.visitor.ServiceRequestVisitor
* @author Qiuwuzhi
* @date 2019/12/27 17:12
* @version V1.0
*/
public class ServiceRequestVisitor implements Visitor{
    public void visitEnterpriseCustomer(EnterpriseCustomer customer) {
        //企业客户提出的具体服务请求
        System.out.println(customer.getName()+"企业提出服务请求");
    }

    public void visitPersonalCustomer(PersonalCustomer customer) {
        System.out.println("客户"+customer.getName()+"提出服务请求");
    }
}
